package com.netcracker.studportal.server.main_test;

import org.json.simple.JSONObject;

import com.netcracker.studportal.server.facade.FacadeAdmin;

public class MainAdminAddExamToStudents {
	public static void main(String args[]){
		FacadeAdmin fa= new  FacadeAdmin();
		try{
			
		JSONObject obj = new JSONObject();
		
		obj.put("exam_id", "1");
		obj.put("course", "1");
		obj.put("group_num", "1");
        obj.put("faculty_id", "2");
       
		
	    obj.put("subject_id", "1");
		
		//String str=fa.addExamToStudentsGroup(obj.toString());
		//System.out.println("str "+str);
		
		//String str=fa.getExamsBySubject(obj.toString());
		//System.out.println("str "+str);
	    
	    obj.put("univ_id", "1");
	  // String str=fa.getProfsByUniversity(obj.toString());
	 //  System.out.println("str "+str);
	    	    
	    obj.put("prof_id", "5");
	 //   String str=fa.getExamsByProfessor(obj.toString());
	  //  System.out.println("str "+str);
	    
	    String str=fa.getFacultiesByUniversity(obj.toString());
		System.out.println("str "+str);
	    
	    
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
